package com.example.demo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.Resume;
import com.example.demo.entity.User;
import com.example.demo.service.ResumeService;
import com.example.demo.mapper.ResumeMapper;
import com.example.demo.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
* @author 你爸爸
* @description 针对表【resume(简历表)】的数据库操作Service实现
* @createDate 2023-12-12 18:36:34
*/
@Service
public class ResumeServiceImpl extends ServiceImpl<ResumeMapper, Resume>
    implements ResumeService{

    @Autowired
    private ResumeMapper resumeMapper;

    @Override
    public List<Resume> selectByUserId(Integer id) {
        return resumeMapper.selectByUserId(id);
    }


    @Override
    public IPage<Resume> selectByPage(Integer current, Integer size) {
        Page<Resume> page = new Page<>(current, size);
        return resumeMapper.selectByPage(page);
    }

}




